package com.tanhua.test;/*
 @author lxy
 @create 2021-09-11-16:10   
 */

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class test {

    static String str1 = "aaa";
    @Test
    public void teststr(){
        String str  = "aaa";
        stringtest(str);
        System.out.println("--------");
        System.out.println(str);
    }

    public void stringtest(String str) {
        str = "bbb";
        System.out.println(str);
    }

    @Test
     public void testlist(){
        List<String> list = new ArrayList<>();
        list.add("aaa");
        list.add("bbb");
        listTest(list);
        System.out.println(list);
    }

    private void listTest(List<String> list) {
        list.add("ccc");
    }

    @Test
    public static void test11(){
        System.out.println("hello world");
    }

}
